/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package experiments;

/**
 *
 * @author ash
 */
public class LastIndex {
    
    public static void main (String[] a){
        String x = "123.567";
        System.out.println(x.lastIndexOf('.'));
    }
    
}
